RXTX is a cross-platform serial communication component library, which is compatible with SUN's Java (tm) CommunicationAPI standard (except for the package name, the rest are the same), and RXTX is cross-platform, currently, the supported platforms include windows, linux, mac, Solaris, and wince (recompilation required ). In comparison, although sun's CommunicationAPI3.0 standard package also supports linux
OS X Yosemite uses the Java language to access the serial device through the RXTX library.The RXTX library you can use is already under Git. The access address is as follows: Https://git.oschina.net/myaniu/RXTX After downloading Mac.zip, unzip.Copy the Rxtxcomm.jar and Librxtxserial.jnilib under the directory to the/library/java/extensions directory and give you
RXTX is an extension of Javacomm serial communicationRXTX files required for development: Http://rxtx.qbang.org/wiki/index.php/DownloadAfter unpacking, you can see the folders that support each platform:If the installation path for Java is D:\java\jre7, the RxtxSerial.dll in the selected folder is copied to D:\java\jre7\bin\,Copy Rxtxcomm.jar to D:java\jre\lib\ext\The Rxtxcomm.jar is then introduced in the project's Lib package.1 /**2 * Get computer s
In the near future to do a running and Android system, and testing instruments to carry out serial communication software, toss for several days, now sorted out a complete example of serial communication, referring to the RXTX-related packages:
Class Structure:
Spcomm.java: Communication subject
Spcommtest.java: Caller
1. Spcomm.java
Import Gnu.io.CommPortIdentifier;
Import gnu.io.PortInUseException;
Import Gnu.io.SerialPort;
Import gnu.io.SerialPo
Serial Port operations include the java host computer Embedded c-host machine, and the java lower bitEnvironment 1: 1.1 Keil uVision4
Http://pan.baidu.com/s/1o6A331w1.2 STC
Http://pan.baidu.com/s/1jGpCUTC
1.3 Myeclipse 8.5
Http://pan.baidu.com/s/1jGABEaM
1.4 jar package RXTX to be imported
Http://pan.baidu.com/s/1ntwsvRr
Copy rxtxParallel. dll and rxtxSerial. dll to the bin directory of the jdk directory.
Copy RXTXcomm to the jdk \ jre \ lib \ ext dir
When running Java read serial programs in the terminal or IDE, the following information is always reported:
[Lhwtouch@localhost root]$ java Main experimental:jni_onload called. Stable Library ========================================= Native lib Version = Rxtx-2.1-7 Java lib Version = Rxtx-2.1-7 che CK_GROUP_UUCP (): Error testing lock file creation error details:permission Deniedcheck_lock_status:no Permi
Final goal: to provide a stable and reliable Java SMS sending server under Linux.
The first stage: coding and testing under the Win32 platform;
Phase two: Deploy and test under Linux platform;
Directory:
Related resources: (Java communication package)
Pre-preparation of WIN32 serial port programming
Win32 SMS Modem test steps and at instructions:
Pre-preparation of Linux serial port programming
List all serial ports and ports of the system to find the serial name used in the SMS modem
Test seria
Keywords: Java serial port programming, SMS Modem, AT command
Ultimate Goal: provide a stable and reliable Java SMS sending server in Linux.
Stage 1: Coding and testing on the Win32 platform;
Stage 2: deploy and test on the Linux platform;
Directory:
Related Resources: (Java Communication package)
Preparation for Win32 serial Programming
Test procedure and AT command for Win32 SMS Modem:
Preparations for Linux Serial Port Programming
Lists All serial and parallel ports of the system to f
the language is Java, because this language is more powerful and flexible.The IDE I chose is myeclipse 8.5 In addition to the KAR package RXTX because the Comm package only supports Win32 bitThe simple operation is to create a new Java project, import the jar package, and create a new Java file under SRC. Also pay attention to the use of RXTX. The main thing is to copy the two DLL files under the JDK bin,
compatibility and stability seven lvds-1080 screen can display horizontal screen full screen and vertical screen full screen 201,610,248 Sysconfig under kernel can read support shell script boot load boot support call SH script Initshinesh 1 the final DTB where 2 currently can only be read lcd0 below sysconfig instead of reading DTB this has to be tested. 3 Boot support call SH script initshinesh nine backlight patch 10 RTC menuconfig inside plus isl1208 R16 's rtc-isl1208c directly transplante
In mina2.0, you can use serial transmission for connection, just like using TCP communication. Obtain Mina 2.0
You can download the latest Mina version. If you want to obtain Mina of other versions, you can check the developer manual if you have any questions.Prerequisites
Prompt message:If you want to access the serial port through a Java program, you need a local library (. DLL or. so depends on your operating system ). mina is using rxtx.org this: ftp://ftp.qbang.org/pub/
Ultimate Goal: provide a stable and reliable Java SMS sending server in Linux.
Stage 1: Coding and testing on the Win32 platform;
Stage 2: deploy and test on the Linux platform;
Directory:
Related Resources: (Java communication package)
Preparation for Win32 serial Programming
Test procedure and at command for Win32 sms modem:
Preparations for Linux Serial Port Programming
Lists All serial and parallel ports of the system to find the serial port name used by the sms modem.
Test serial port speed
been tested successfully on my computer and may not require such trouble. Note that if you use myeclipse because it comes with the JRE, you need to place the DLL and the properties file in the appropriate location of the JRE where it resides.Does it feel like this is a hassle, and there are windows restrictions. Later we downloaded RXTX this open source package instead of just the comm. Not only Windows can under, Linux also can. The use method is si
Java native to the serial port support only javax.comm,javax.comm older, and does not support the 64-bit system, I look at the Jlibmodbus (a Java implementation of the Modbus protocol stack) when the use of several Java operating serial Port extension class library.1.RXTXOfficial website: Http://fizzed.com/oss/rxtx-for-java2.jSerialCommOfficial website: https://fazecast.github.io/jSerialComm/3.purejavacommGithub:https://github.com/nyholku/purejavacomm
Apache Mina is a network application framework designed to help users develop high-performance and highly reliable network applications. It provides an asynchronous API that is abstracted from Java NiO in different transmissions such as TCP/IP and UDP/IP.
Apache MINA is also known as:
NIO Frame Library
Client Server Framework Library
A Network socket font
Although Mina is simple, it still provides a fully functional network application framework:
Provides a unified API for different transp
faster network layer of access, almost without attracting attention.
There is data to show that Mina is used by tens of millions of applications around the world. There are some Apache-based Mina projects, and they work very well. This is some form of assurance that you do not need to spend a few hours on some mysterious error in your own network layer implementation.
There are support protocol Mina, which comes with various existing protocols such as HTTP, XML, TCP, LDAP, Dhcp,npt,dns,
The core of the entire framework of several packages are: Org.apache.mina.core.service, org.apache.mina.core.session, Org.apache.mina.core.polling and Org.apache.mina.transport.socket.This article first looks at Org.apache.mina.core.service. The first interface to say is Ioservice, which is the base interface for all Ioacceptor and ioconnector. What information do we need to focus on for a ioservice? 1) The underlying metadata information transportmetadata, such as the underlying network service
Mina framework.Mina 3.x is still in the development phase and will further improve the communication performance through NIO-2.The Java. NiO. * package contains several key structures:1) buffer: Data container2) charset: Container converter with byte and Unicode encoding3) channel: encapsulates the connection performance of entities for I/O operations4) selector: Provides optional, multi-point multiplexing non-blocking I/O5) regexps: provides some tools for operating regular expressions.Advanta
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.